package com.yangchuang.openpicture.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yangchuang.openpicture.pojo.Picture;
import com.yangchuang.openpicture.vo.AiPictureInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface PictureService extends IService<Picture> {
    Long insertPicture(long fileSize,
                       String publicUrl,
                       Long categoryId,
                       String pictureName,
                       String description,
                       List<String> tags,
                       int width,
                       int height);

    AiPictureInfo aiPicture(MultipartFile file) throws IOException;

    AiPictureInfo parseAiResponseJson(String json);

    void batchdelete(List<String> publicUrls);

    void batchhide(List<String> publicUrls);

    void batchopen(List<String> publicUrlS);

    Long getPictureOwnerIDByPictureID(Long pictureID);

    String PictureOwnerUpdate(Long pictureId);
}
